package cn.app97.user.controllers;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class User {

    @GetMapping("/user")
    public String getList() {
        return "user";
    }

    @GetMapping("/user/{id}")
    public String getOne(int id) {
        return "user" + id;
    }
}
